package com.craiglarman.minesweeper.domain;

public class MineField {
	
	Square[][] squares;
	int rows = 0;
	int cols = 0;
	int minesCount = 0;
	
	public MineField(int rows, int cols) {
		this.rows = rows;
		this.cols = cols;
		squares = new Square[rows][cols];
		for(int i=0;i<rows;i++) {
			for(int j=0;j<cols;j++) {
				squares[i][j] = new MineSquare();
				minesCount++;
			}
		}
	}
	
	public int getRows() {
		return this.rows;
	}
	
	public int getCols() {
		return this.cols;
	}

	public int getMinesCount() {
		return minesCount;
	}

	
}
